#bash环境执行（cmd会报错 python找不到）: nodemon --watch 01list.py --exec 'python 01list.py'

aList = [1, 2, 3, 4, 5,1]
print(aList)

#len

# print(len(aList))

# print(aList[0:2])
# aList.append(6)
# print(aList)
aList.remove(1)
print(aList)
aList.pop(3)
print(aList)

print([1,12.3,'bobo','jay','hello'][:-1])
# print([1,12.3,'bobo','jay','hello'][::2])

f = [1,12.3,'bobo','jay','hello'] 

print(f.extend([1,2,3]))
print(f)

toDelete = [1,2,3]
del toDelete[0:2]
print(toDelete)